#导入库
from flask import Flask,render_template
#创建一个对象实例
app = Flask(__name__)
#给定访问路径
@app.route("/")
def index():
    return render_template("index.html")

@app.route("/schoollife")
def school():
    return render_template("schoollife.html")

@app.route("/dailylife")
def daily():
    return render_template("dailylife.html")

@app.route("/animals")
def animal():
    return render_template("animals.html")


#运行app实例
if __name__=='__main__':
    #导入权限
    app.run(host="0.0.0.0",port=8080)
